<?php
/**
 * Zapp
 *
 * @version $Id: Bootstrap.php 18 2010-09-13 04:20:05Z dm.barsukov@gmail.com $
 */

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    /**
     * Application resource namespace
     * @var false|string
     */
    protected $_appNamespace = '';

    /**
     * Store config in registry
     *
     * @return void
     */
    protected function _initRegistry()
    {
        $registry = new Zend_Registry(array(), ArrayObject::ARRAY_AS_PROPS);
        $registry['Zapp_Config_Application'] = new Zend_Config($this->getOptions());
        Zend_Registry::setInstance($registry);

        return $registry;
    }
}
